package com.gdufs.secondhandwebsite.service;

import com.gdufs.secondhandwebsite.entity.Comment;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


@RunWith(SpringRunner.class)
@SpringBootTest
public class testCommentService {
    @Autowired
    CommentService commentService;
    @Test
    public void testCreate(){
        Comment comment =new Comment();
        comment.setContent("内容");
        commentService.createComment(comment,"狗子","ddd.png",2L);
    }
}
